﻿using SRM.Core.Extension;
using SRM.Core.Models.Base;

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SRM.Core.Models
{
    public class PurchaseOrder : OrderModel
    {
        public string PurchaseOrderNo { get; set; }

        /// <summary>
        /// 总数
        /// </summary>
        public int PurchaseCount { get; set; }

        public PurchaseOrderTypeEnum PurchaseOrderType { get; set; }

        [Display(Name = "供应商编码")]
        public string SupplierNo { get; set; }

        [Display(Name = "供应商名称")]
        public string SupplierName { get; set; }

        public string Address { get; set; }

        public PurchaseOrderStateEnum ReviewState { get; set; }

        [NotMapped]
        public string PurchaseOrderTypeString { get; set; }

        [NotMapped]
        public string ReviewStateString { get; set; }
    }
}
